 
//
// Spitfire Mk.XIVe
//

[performance]
    MaxSpeed           = 711.0
    MaxClimbRate       = 23.8
    ServiceCeiling     = 13000.0
    MinStructureHealth = 0.959 // TODO
    MinEngineHealth    = 0.6 // TODO
    EngineWarming      = true
    TurnRate           = 330.0, 63.0 // TODO
	
    //   ,    (2600/+9),  100%,  
    ////// ClimbTime = <float ALTITUDE>, <float TIME>
    ClimbTime =     0,    0
    ClimbTime =  1000,   54
    ClimbTime =  2000,  117
    ClimbTime =  3000,  180
    ClimbTime =  4000,  242
    ClimbTime =  5000,  305
    ClimbTime =  6000,  384
    ClimbTime =  7000,  464
    ClimbTime =  8000,  540
    ClimbTime =  9000,  624
    ClimbTime = 10000,  731
    ClimbTime = 11000,  880
    ClimbTime = 12000, 1235
	
    //   ,   (2750/+18),  100%,  
    ////// MaxAltTAS = <float ALTITUDE>, <float TAS>
    MaxAltTAS = 0, 566
    MaxAltTAS = 1000,  590
    MaxAltTAS = 2000,  615
    MaxAltTAS = 3000,  641
    MaxAltTAS = 4000,  661
    MaxAltTAS = 5000,  660
    MaxAltTAS = 6000,  672
    MaxAltTAS = 7000,  693
    MaxAltTAS = 8000,  711
    MaxAltTAS = 9000,  706
	MaxAltTAS = 10000, 697
	MaxAltTAS = 11000, 683
	MaxAltTAS = 12000, 658

    ////// turn time at altitude (m/s) = <float ALTITUDE>, <float TIME>
    TurnTimeAlt =    0, 18.3
    TurnTimeAlt = 1000, 18.8
    TurnTimeAlt = 2000, 19.7
    TurnTimeAlt = 3000, 21.0
    TurnTimeAlt = 4000, 22.1
    TurnTimeAlt = 5000, 24.8
    TurnTimeAlt = 6000, 28.8
    TurnTimeAlt = 7000, 32.2

    ////// optimal turn CAS at altitude= <float ALTITUDE>, <float CAS>
    TurnOptimal_CAS_Alt =    0, 275
    TurnOptimal_CAS_Alt = 1000, 270
    TurnOptimal_CAS_Alt = 2000, 265
    TurnOptimal_CAS_Alt = 3000, 260
    TurnOptimal_CAS_Alt = 4000, 255
    TurnOptimal_CAS_Alt = 5000, 250
    TurnOptimal_CAS_Alt = 6000, 245
    TurnOptimal_CAS_Alt = 7000, 240

    MaxClimbCAS = 280
    MaxClimbRate = 23.8
    MaxAltitude = 13000.0
    CruiseFuelRate = 2.74 //[./.] 300 / (MinCruiseCAS); 1000 ; 50% ,  
    PriorityType = 1 //FIGHTER=1,HEAVY_FIGHTER=2,LIGHT_BOMBER=3,BOMBER=4,LIGHT_RECON=5,RECON=6,SHTURMOVIK=7,CARGO=8
[end]

[cruise]
    RefAngle               = 90.0
    RefRoll                = 85.0
    MaxRoll                = 60.0
    MaxRollClimb           = 10.0
    RefRollFactor          = 0.5
    RefAltError            = 100.0
    RefClimb               = 15.0
    RefClimbFactor         = 1.5
    RefDive                = 15.0
    RefDiveFactor          = 1.5
    TurnOffError           = -5
    TurnOnError            = -2
    MinRPM                 = 550
    MinCruiseCAS           = 300.0
    MinWingmanCAS          = 260.0
    WingLeaderLagCorrectionK = 1.0		//   0.0  1.0(default),        
    PursueWingmanDist      = 300.0		//             
    WingLeaderThrottleLowLimit = 0.4	//        
    WingLeaderThrottleUpLimit  = 0.9	//         
    LandRoundCAS0          = 253		//     ,   2 ,  2  3 
    LandRoundCAS1          = 243		//     4 
    LandRoundCAS2          = 203		//        
    LandingApproachCAS     = 190.0
    LandingTouchDownCAS    = 165.0
    TouchDownDistance      = 200.0	//         
    TouchDownPitch         = 12.0
    LandingApproachCAS_NoFuel  = 180.0
    LandingTouchDownCAS_NoFuel = 160.0
    TouchDownDistance_NoFuel   = 200.0
    TouchDownPitch_NoFuel      = 12.0
    StartTurnBeforeGlissadeDistance = 450.0
    TouchDownPitchUpSpeed  = 110.0	//               
    TouchDownAlignHeight   = 40.0	//   
    SmoothTouchDownHeight  = 2.0	//   " ()"
    LandingThrottleLimit   = false
    BrakePitchMax          = 11.5	//      
    BrakePitchMin          = 9.5	//        BrakeLimMin
    BrakeLimMin            = 0.1	//       BrakePitchMin (  )
    ApproachLowering       = false
    ApproachIgnition       = false
    LandingRoundIgnition   = false
    TouchDownCYRFactor     = 0.0
    RestrictAttackAngle    = true
    MinAttackAngle         = 16.0
    MaxAttackAngle         = 19.0
    MinNegativeAttackAngle = -12.0
    MaxNegativeAttackAngle = -15.0
    MinSlipAngle           = 15.0
    MaxSlipAngle           = 20.0
    TaxiD1                 = 5.0
    TaxiD2                 = 10.0
    TaxiD3                 = 200.0
    TaxiD4                 = 400.0
    TaxiSpeedD1            = 10.0	//      D1,  D2  
    TaxiSpeedD2D3          = 15.0	//      D2  D3,  D2  
    TaxiSpeedD4            = 40.0	//      D4
    TaxiMaxAngle           = 90.0	//      ,       TaxiSpeedD1
    TaxiMaxAside           = 50.0	//      ,       TaxiSpeedD1
    TaxiBrakingThrottleUp  = 0.6	//           TaxiSpeedD1
    TaxiingPitch           = false	//          ,          .   -  .
    TaxiingPIDSpeed        = 10.0	//   PID  [pid_taxiing]  [pid_0]  ,       0,75*TaxiingPIDSpeed   = TakeOffCAS+10
    Switch_2_TaxiingPIDSpeed = 100.0	//   PID  [pid_0]  [pid_taxiing]  .   = LandingTouchDownCAS - 20.0
    TakeOffCAS             = 170.0	//  ,         .
    TakeoffPitch           = 15.0	//        
    TakeoffElevatorSafe    = true
    TakeoffSafePitch       = 0.0
    TakeoffSurfaceSlope    = false
    TakeoffCriticalSlope   = 0.0
    CriticalTakeoffRoll    = 8
    TakeoffYawFactor       = 0.0
    TakeOffBrakingMax      = 1.0	//          TakeOffBrakingAngle (  pid_taxiing)
    TakeOffBrakingAngle    = 10.0	//     ,      TakeOffBrakingMax
    StallRollRate          = 170.0
    StallYawRate           = 60.0
    StructureAlert         = true
    StructureAlertNy       = 5		//   ,   =9
    StructureAlertTAS      = 750.0
    AttackIgnitionControl  = false
    TakeoffRefAngle        = 15.0
    MaxFlapsCAS            = 170.0
    MinFlapsCAS            = 180.0
    TakeOFFFlapsAngle      = 1   // 0..1    
    LandingFlapsAngle      = 2   // 0..1     
    FlapsPosQuantity       = 2
    DifferentialBrakes     = false  // "true",    (), "false" -  ()
    OpenCocpitWhileTaxi    = true   //  true -      
    NeedFilter             = false	//     	
    MinStickMoveTime       = 0.2	//           
    MaxStickMoveTime       = 0.2	//            
    MinStickMoveCAS        = 400.0	//      m_MinStickMoveTime
    MaxStickMoveCAS        = 500.0	//      m_MaxStickMoveTime
    CruiseThrottleLimit    = 0.73	//   -    , 0..1 ,   - 1
    taxiWindLimit          = 6.0	//  (/)                ( - 15.0 /)
[end]

[dogfight]
    [novice]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 650.0
        MaxPitchRate      = 180.0
        AttackDistance    = 500.0
        EngageDistance    = 1500.0
        MinFireDistance   = 100.0
        MaxFireDistance   = 600.0
        MinOpenFireAngle  = 14.0
        MaxOpenFireAngle  = 7.0
        MinStopFireAngle  = 28.0
        MaxStopFireAngle  = 14.0
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -60.0
        HBTPositiveBTRoll      = 60.0
        InterceptAltitudeAdvance = 100.0
    [end]
    [normal]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 600.0
        MaxPitchRate      = 180.0
        AttackDistance    = 1000.0
        EngageDistance    = 2200.0
        MinFireDistance   = 70.0
        MaxFireDistance   = 550.0
        MinOpenFireAngle  = 11.0
        MaxOpenFireAngle  = 5.0
        MinStopFireAngle  = 19.2
        MaxStopFireAngle  = 8.5
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -70.0
        HBTPositiveBTRoll      = 70.0
        InterceptAltitudeAdvance = 400.0
    [end]
    [high]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 500.0
        MaxPitchRate      = 180.0
        AttackDistance    = 1400.0
        EngageDistance    = 2700.0
        MinFireDistance   = 50.0
        MaxFireDistance   = 500.0
        MinOpenFireAngle  = 8.5
        MaxOpenFireAngle  = 3.0
        MinStopFireAngle  = 12.7
        MaxStopFireAngle  = 4.5
        CollisionTimeTreshold  = 3.0
        HBTNegativeRoll        = -75.0
        HBTPositiveBTRoll      = 75.0
        InterceptAltitudeAdvance = 700.0
    [end]
    [ace]
        RefNoseAngle      = 30.0
        MinCAS1           = 200.0
        MaxCAS2           = 450.0
        MaxPitchRate      = 180.0
        AttackDistance    = 2200.0
        EngageDistance    = 3200.0
        MinFireDistance   = 30.0
        MaxFireDistance   = 480.0
        MinOpenFireAngle  = 5.5
        MaxOpenFireAngle  = 1.5
        MinStopFireAngle  = 6.8
        MaxStopFireAngle  = 1.8
        CollisionTimeTreshold  = 2
        HBTNegativeRoll        = -80.0
        HBTPositiveBTRoll      = 80.0
        InterceptAltitudeAdvance =1500.0
    [end]

    MinSafeAltitude0  = 50.0
    MaxSafeAltitude0  = 100.0
    MinSafeAltitude45 = 80.0
    MaxSafeAltitude45 = 250.0
    MinSafeAltitudeVP = 600.0
    MaxSafeAltitudeVP = 1200.0

    CASPitchLimit  = false
    MinPitchCAS    = 170.0
    MaxPitchCAS    = 565.0
    STVOffset      = -1.5 // -5.5
    YawAimingAngle = 7.0

    AirTargetToLeaderCriticalDistance = 10000,15000

    DiveCAS   = 740.0
    CruiseCAS = 475.0
    ClimbCAS  = 280.0

    RestrictPitchBySSA = true
    MinPitchSSA = 10.0
    MaxPitchSSA = 15.0

    GunAirAimSmooth = 0.1    //       (  ). [0..1], 0 - , 1 - , -1 - 
[end]

[approach]
    GroundTargetToLeaderCriticalDistance = 10000,15000
    VFAngle              = 0.0
    ApproachCAS          = 450.0
    ApproachRadius       = 900.0
    ApproachDistance     = 2800.0
    ApproachAltitude     = 600.0
    GroundAttackExitAltitude = 110.0   //           (   ,   +40)
    GroundAttackDistance = 300.0
    GroundEngageDistance = 2600.0
    GroundEngageRocketK  = 0.9     // -    m_GroundEngageDistance   
    SpiralAttackApproach = true
    DiveBombAltitude     = 2500.0  //     ,         -      
    DiveBombExitAltitude = 650.0   //      
    DeepDiveWeaponSet    = -1    //  payloads     , -1  ,  15   
    ShallowDiveWeaponSet = 1,2,3    //  payloads     , -1  ,  15   
    OwerWingDive         = false   //     , true -   , false -    
    DiveSoftness         = 15.0    // ""       -     ,   ,    -       (  20.0)
    PushDiveEntranceDistance = 1500.0 //  ()         "  ",   ,         ,  ,    - 
    PushDiveEntranceK    = 1.5     // .     "  ",  -   ,  , (. - PushDiveEntranceDistance)*PushDiveEntranceK =    (  1.0)
    ShallowDiveAngle     = 30.0    //    , < 41  -     (  ) >41 -  (  46.0)
    ShallowExitAltitude  = 180.0   //       (   ,   +40)
    ShallowDiveEnterKoef = 1.2     //          , >1 -    , < 1 - ,   .  
    Salvo2WeaponSet      = -1      //  payloads,     / /  2 , -1  ,  15   
    Salvo4WeaponSet      = -1      //  payloads,     / /  4 , -1  ,  15   
    SalvoAllWeaponSet    =  1,2,3 //  payloads,     / /  , -1  ,  15   
    NearRocketAimError   = 45     //          300  
    FarRocketAimError    = 20     //          600  
    RocketAimSmooth      = 0.8    //    .  <1 ,  >1 
    GunAimSmooth         = 2.5  //       .  <1 ,  >1 .  =1.8
    AimDamperCompensationTime = 2.5 //   ,    .
[end]


[adapt_pid_0]
    CAS     = 200.0
    Roll    = 14.0,  0.0,  5.1, 0.05
    Pitch   = 80.0,  0.0, 30.0, 0.05
    PitchVy = 30.0,  0.0, 30.0, 0.05
    Yaw     = 16.0,  0.0,  5.0, 0.02
    Speed   = 7.0,  20.0, 35.0, 0.1
[end]
[adapt_pid_1]
    CAS     = 250.0
    Roll    = 12.0,    0,  3.9, 0.05
    Pitch   = 65.0,    0, 20.0, 0.05
    PitchVy = 27.0,    0, 22.5, 0.05
    Yaw     = 14.0,    0,  4.0, 0.02
    Speed   = 15.0, 75.0, 50.0, 0.2
[end]
[adapt_pid_2]
    CAS     = 300.0
    Roll    = 10.0,  0.0,  2.6, 0.05
    Pitch   = 50.0,  0.0, 10.0, 0.05
    PitchVy = 24.0,  0.0, 15.0, 0.05
    Yaw     = 12.0,  0.0,  4.0, 0.02
    Speed   = 15.0, 75.0, 50.0, 0.2
[end]
[adapt_pid_3]
    CAS     = 500.0
    Roll    = 10.0,  0.0,  2.1, 0.05
    Pitch   = 30.0,  0.0,  8.0, 0.05
    PitchVy = 13.0,  0.0,  8.0, 0.05
    Yaw     = 10.0,   0.0, 1.0, 0.05
    Speed   = 15.0, 75.0, 50.0, 0.2
[end]
[pid_taxiing]
    Roll    = 20.0,  0.0,  0.0, 0.05
    Pitch   =  4.0,  0.0,  0.0, 0.05
    Yaw     = 20.0,  0.0,  0.0, 0.05
    Speed   =  4.0, 10.0, 60.0, 0.04
    WheelBrakes = 1.5, 0.0, 0.0
[end]